<!--
function typesel_change() {
	switch (document.iform.type.selectedIndex) {
		case 1:	/* single */
			document.iform.ip.disabled = 0;
			document.iform.mask.value = "";
			document.iform.mask.disabled = 1;
			break;
		case 2:	/* network */
			document.iform.ip.disabled = 0;
			document.iform.mask.disabled = 0;
			break;
		default:
			document.iform.ip.value = "";
			document.iform.ip.disabled = 1;
			document.iform.mask.value = "";
			document.iform.mask.disabled = 1;
			break;
	}
}

function method_change(){
    if(document.iform.method.selectedIndex == 1)
    {
        document.getElementById("span_sharetype").style.display = '';
    }
    else
    {
        document.getElementById("span_sharetype").style.display = 'none';
    }

    if(document.iform.method.selectedIndex == 1 && document.iform.sharetype[2].checked) 
    {
        document.getElementById("tr_adv_txt").style.display = '';
        document.getElementById("tr_ip").style.display = 'none';
    }
    else 
    {
        document.getElementById("tr_adv_txt").style.display = 'none';
        document.getElementById("tr_ip").style.display = '';
    }
}

function rep_change() {
    document.iform.endport.selectedIndex = document.iform.beginport.selectedIndex;
}

function ext_change() {
    if (document.iform.beginport.selectedIndex == 0) {
        document.iform.beginport_cust.disabled = 0;
    } else {
        document.iform.beginport_cust.value = "";
        document.iform.beginport_cust.disabled = 1;
    }
    if (document.iform.endport.selectedIndex == 0) {
        document.iform.endport_cust.disabled = 0;
    } else {
        document.iform.endport_cust.value = "";
        document.iform.endport_cust.disabled = 1;
    }


    document.iform.beginport.disabled = 0;
    document.iform.endport.disabled = 0;

}


window.onload = function () {
	var oTextbox1 = new AutoSuggestControl(document.getElementById("ip"), new StateSuggestions(addressarray));
}
//-->